/**
 * 
 */
package cn.com.jsepc.rep.comm;

import java.util.List;

/**
 * @author liangyx
 *
 */
public abstract class TreeVO {
	protected String id;
	protected String text;
	protected String iconCls;
	protected String cls;
	protected String uiProvider;
	protected String pid;
	public TreeVO(){
		this.iconCls = "task-folder";
		this.cls = "master-task";
		this.uiProvider = "col";
	}
	public TreeVO(String text, String id, String pid){
		this.text = text;
		this.id = id;
		this.pid = pid;
		this.iconCls = "task-folder";
		this.cls = "master-task";
		this.uiProvider = "col";
	}
	public TreeVO(String text, String id, String iconCls, String cls, String uiProvider, String pid){
		this.text = text;
		this.id = id;
		this.iconCls = iconCls;
		this.cls = cls;
		this.uiProvider = uiProvider;
		this.pid = pid;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	public String getUiProvider() {
		return uiProvider;
	}
	public void setUiProvider(String uiProvider) {
		this.uiProvider = uiProvider;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	@SuppressWarnings("unchecked")
	public abstract List getChildren();
	@SuppressWarnings("unchecked")
	public abstract void setChildren(List children);
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
}
